﻿This VB.NET project is a desktop WinForms application for working with maps from the Sudden Strike series of games (SS1/Forever, SS2, SSRW – Resource War, including their mods and campaigns). The application can decompile maps into a readable/editable format, edit texts and phrases, and pack/unpack files in the FZFS archive format (SUE/APS/PAK).

Main window and application control
Form1.vb / Form1_Designer.vb – the main program window. It displays a list of maps from the selected folder (with thumbnails/minimaps), detects the type and format of each file (SS1/SSF/SS2/SSRW/campaign), allows renaming and deleting files via the context menu, and starts decompilation via buttons or double-click.

FormMissionSelect.vb / _Designer.vb – dialog for selecting the target output folder (map.000–map.254) with manual or automatic (according to the map name) game mode SSRW/RWM8/RWG3/WWM/LIB8/HS2RW/ToW;
SS2/HS2APRM/RWM68;
SS1/SSF

FormMapPreview.vb / _Designer.vb – separate window for previewing the minimap with smooth zooming with the mouse wheel from the cursor position after double-clicking on the minimap in the middle of the main form.
FormPackUnpack.vb / _Designer.vb – independent file manager (two tree views of disks/folders) for packing and unpacking .sue/.aps/.pak archives natively (without calling external SUE/APS/PAK.EXE), including deleting, renaming and tracking changes on the disk.
Decompile campaign files into a separate singleplayer map - select the map and mission file in the left window using the mouse + shift and start decompilation.

Core – map decompilation
MapConverter.vb (backbone file, ~3700 lines, MapKonverter class) – the engine of the entire decompilation. It recognizes the map type/format by magic bytes and version, parses binary blocks (P-INFO, P-RHOMBS, P-FLAGS, P-OBJECTS, I-UNITS, I-SCRIPTS, I-PHRASE2, etc.) and converts them into readable text/binary outputs to the maps folder.***. Contains separate branches for SS1/SSF (linear format), SS2/SSRW (block format), campaigns (SSC) and multiplayer maps (smm).

SuddenStrikeMapUnpacker.vb – utility, unpacks any block map file into individual blocks into the __TEST folder (without interpreting the content) for testing purposes

Text editors in the map
EditPhraseSSF.vb / _Designer.vb and EditPhraseSSRW.vb / _Designer.vb – a pair of dialog editors for editing game phrases and briefings directly in the map file (SS1/SSF, respectively SS2/SSRW), including the choice of text encoding (CP1250/1251/1252, UTF-8, Big5, GB2312, Shift-JIS) and integrated machine translation (Google Translate). Editor with the ability to change the encoding and translation of texts and save them back to the original map.

Due to the scope of the map changes and the time required, the project has only been tested to a limited extent. Any further improvements to the project and corrections of possible errors will be welcomed.

This is an unofficial, community-made tool created for interoperability and modding purposes. It is not affiliated with or endorsed by the developers/publishers of Sudden Strike. No game assets are included. Provided "as is", without warranty of any kind.